@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>报损单号: <b id="damageOrderNumber">${damageOrderNumber}</b></h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-4">
                                <#TimeCon id="createDate" name="报损日期" isTime="true" />
                                <input type="hidden" id="amountPaid" name="amountPaid"/>
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="remarks" name="备注信息" />
                            </div>
                            <div class="col-sm-3">
                                <#button name="保存" icon="fa-check" clickFun="GoodsDamage.save()"/>
                                <#button name="清除" icon="fa-circle-o" clickFun="GoodsDamage.clearDom()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="GoodsDamageTableToolbar" role="group">
                            @if(shiro.hasPermission("/goodsDamage/add")){
                                <#button name="添加报损商品" icon="fa-plus" clickFun="GoodsDamage.openAddGoodsDamage()"/>
                            @}
                            @if(shiro.hasPermission("/goodsDamage/delete")){
                                <#button name="删除报损商品" icon="fa-remove" clickFun="GoodsDamage.delete()" space="true"/>
                            @}
                        </div>
                        <#table id="GoodsDamageTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/stockmanagement/goodsDamage/goodsDamage.js"></script>
<script type="text/javascript">
    laydate.render({
        elem: '#createDate',
        type: 'datetime'
    });
</script>
@}
